﻿<?xml version="1.0" encoding="utf-8" ?>

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly ="monitor_2_DBwork" namespace ="monitor_2_DBwork" >
  <class name="Users" table="Users" >
    <id name ="Id" column ="Id" type ="int" generator="identity" />
    <property name="Name" column="Login" type="string(30)" unique="true"/>
    <property name="PasswordHashCode"/>
    <property name="Access"/>
    <property name="Information" type ="string(40)"/>

    <many-to-one name="AccessInfo" class="Access" lazy="false" column="Access"
                 cascade="save-update" insert="false" update="false" not-null="false"/>

  </class>
</hibernate-mapping>